package com.computer;

public class PCbox implements Box {
    private String name;
    private MainBoard mainBoard;
    private  Power power;

    @Override
    public String getPCbox(){
        return "机箱名称："+this.name+";\n电源信息："+this.power.getName()+";\n=>>主板信息：\n"+this.mainBoard.getMainBoard()+";\n";
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public MainBoard getMainBoard() {
        return mainBoard;
    }

    public void setMainBoard(MainBoard mainBoard) {
        this.mainBoard = mainBoard;
    }

    public Power getPower() {
        return power;
    }

    public void setPower(Power power) {
        this.power = power;
    }
}
